<div class="usuarios index">
<?php echo $this->Session->flash(); ?>
	<h2><?php __('Administrador || Índice de Packs');?></h2>
        <div class="actions_links">
                <ul>
                        <li><?php echo $this->Html->link(__('Agregar Pack', true), array('action' => 'add')); ?></li>
                </ul>
        </div>
	<table cellpadding="0" cellspacing="0">
	<tr>			
			<th><?php echo $this->Paginator->sort('nombre');?></th>
			<th><?php echo $this->Paginator->sort('numero_horas');?></th>
			<th><?php echo $this->Paginator->sort('numero_alumnos');?></th>
			<th><?php echo $this->Paginator->sort('precio');?></th>			
			<th class="actions"><?php __('Opciones');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($packs as $pack):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>		
		<td><?php echo $pack['Pack']['nombre']; ?>&nbsp;</td>
		<td><?php echo $pack['Pack']['numero_horas']; ?>&nbsp;</td>
		<td><?php echo $pack['Pack']['numero_alumnos']; ?>&nbsp;</td>
		<td><?php echo $pack['Pack']['precio']; ?>&nbsp;</td>		
		<td class="actions_table">
			<?php echo $this->Html->link(__('Ver', true), array('action' => 'view', $pack['Pack']['id'])); ?>
			<?php echo $this->Html->link(__('Editar', true), array('action' => 'edit', $pack['Pack']['id'])); ?>
			<?php echo $this->Html->link(__('Eliminar', true), array('action' => 'delete', $pack['Pack']['id']), null, sprintf(__('Está seguro que desea eliminar el pack %s?', true), $pack['Pack']['nombre'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => false
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('Anterior', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('Siguiente', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
